
package com.sc.datacollect.auth;

import com.sc.datacollect.util.Common;

/**
 * 结果消息实体
 * 
 * @author dong
 *
 */
public class ResultMessage {
	/**
	 * 消息码
	 */
	private String code;
	/**
	 * 消息内容
	 */
	private String message;

	public ResultMessage() {
	}

	public ResultMessage(String code){
		this.code = code;

		if(code.equals(Common.AUTHERRORCODE))
			message = "认证失败";
		if(code.equals(Common.CHECKERRORCODE))
			message = "效验失败";
		if(code.equals(Common.SUCCESSCODE))
			message = "成功";
		if(code.equals(Common.EXCEPTIONCODE))
			message = "异常信息";
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

}
